<template>
  <div>
    <el-row :gutter="10">
      <el-col :span="6">
        <el-card>
          <Detail title="总销售量" count="￥126560">
            <template slot="charts">
              <span
                >周同比 56.67%
                <svg
                  t="1643273006283"
                  class="icon"
                  viewBox="0 0 1024 1024"
                  version="1.1"
                  xmlns="http://www.w3.org/2000/svg"
                  p-id="1570"
                  width="16"
                  height="16"
                >
                  <path
                    d="M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"
                    p-id="1571"
                    fill="#d81e06"
                  ></path>
                </svg>
              </span>
              &nbsp;
              <span
                >日同比 19.16%
                <svg
                  t="1643273110929"
                  class="icon"
                  viewBox="0 0 1024 1024"
                  version="1.1"
                  xmlns="http://www.w3.org/2000/svg"
                  p-id="2492"
                  width="16"
                  height="16"
                >
                  <path
                    d="M941.808046 195.931415 512 828.068585 82.191954 195.931415Z"
                    p-id="2493"
                    fill="#1296db"
                  ></path>
                </svg>
              </span>
            </template>
            <template slot="footer">
              <span>日销售量￥ 12423</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <Detail title="访问量" count="88460">
            <template slot="charts"> <lineChart></lineChart> </template>
            <template slot="footer">
              <span>日访问量 1234</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <Detail title="支付笔数" count="88460">
            <template slot="charts"> <barChart /> </template>
            <template slot="footer">
              <span>转化率 65%</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <Detail title="运营活动效果" count="78%">
            <template slot="charts">
              <progressCharts />
            </template>
            <template slot="footer">
              <span
                >周同比 12%
                <svg
                  t="1643273006283"
                  class="icon"
                  viewBox="0 0 1024 1024"
                  version="1.1"
                  xmlns="http://www.w3.org/2000/svg"
                  p-id="1570"
                  width="16"
                  height="16"
                >
                  <path
                    d="M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"
                    p-id="1571"
                    fill="#d81e06"
                  ></path>
                </svg>
              </span>
              &nbsp;
              <span
                >日同比 11%
                <svg
                  t="1643273110929"
                  class="icon"
                  viewBox="0 0 1024 1024"
                  version="1.1"
                  xmlns="http://www.w3.org/2000/svg"
                  p-id="2492"
                  width="16"
                  height="16"
                >
                  <path
                    d="M941.808046 195.931415 512 828.068585 82.191954 195.931415Z"
                    p-id="2493"
                    fill="#1296db"
                  ></path>
                </svg>
              </span>
            </template>
          </Detail>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Detail from "./Detail";
import lineChart from "./lineChart";
import barChart from "./barChart";
import progressCharts from "./progressCharts";
export default {
  components: { Detail, lineChart, barChart, progressCharts },
};
</script>

<style>
</style>